home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-07-25 | 11.2 KB | 301 lines | [TEXT/KAHL] |
- Locare 1.9 Documentation
-
- Locare was (and will always be) written by Raymond Lau.
- Copyright 1987, Raymond Lau.
- Portions copyright 1986, THINK Technologies, Inc.
-
- June 24,1987
-
-
- Locare is a lost file finder FKEY patterned after PCPC's Eureka! and
- increasingly so, Apple's FileFinder.
-
-
- IMPORTANT: USE ONLY WITH A HFS EQUIPPED SYSTEM. IF YOU RUN IT ON A MFS
- SYSTEM (128K OR 512K W/O HD 20 FILE), IT *WILL* RESULT IN A SYSTEM ERROR.
- Be forewarned! (It's quite useless on a MFS system, so why bother…)
-
-
-
-
-
- Distribution:
-
- This version of Locare (1.8 Shareware Demo) may be distributed freely as
- long as it's distributed w/o financial compensation and not as an
- incentive to buy another product and as long as it's distributed with this
- doc file.
-
- Usage/Shareware:
-
- You may try this version of Locare out for a period of 15 days. If you
- decide that you like it or find it useful, send the author (that's me I
- hope!) $10 with a disk and a self addressed stamped envelope for the latest
- version or send $15 and I'll you a s/s disk.
- Any customer of any of my previous products is entitled to a $3 discount.
-
- Your first (and possibly 2nd/3rd depending on Locare's maturity) update is
- on me. All I ask is that you return my disk.
- Other updates are available for free if you send a disk and sase. Or send
- $5...
-
- Remember, I need you to make this method of distribution work. As long as
- there's some response, I will support the product whenever I can see a
- possible improvement or whenever a reasonable one is suggested. If there
- is no response, I'd assume no one finds such a product useful. If you find
- it useful, register. If not, don't. Don't wait for someone else to do it.
- (That wait will last until eternity.)
-
- Raymond Lau
- 100-04 70 Ave.
- Forest Hills, NY 11375
-
-
- Installation:
-
-
- To install Locare, use FKEY Mgr, FKEY Installer or a resource editor. I
- suggest the use of FKEY Mgr since it's as easy to use as Apple's Font/DA
- Mover.
- Locare comes set as FKEY number 8, however, it may be renumbered at will.
-
-
- Operation:
-
- Type in a part of the name of the file you are searching for.
- Locare will search for all files containing what you typed
- and display them one by one with each click of the "Find!" button. If
- you wish to limit the match to the start or end of the file name, click on
- the appropriate button. Locare will default to the first mounted volume,
- which is usually the hard disk you booted up with (assuming you are using a
- hd). If you wish to search on a separate volume, click on the drive
- button. Some info (and an icon) about the volume is displayed. Icons are
- not shown for offline volumes, but info such as name, used, free, are shown.
- You ARE allowed to search an ejected ("Offline") volume, but you
- will be prompted to insert that disk. You may cancel such a request by
- typing command-period.
-
- The "at beginning/anywhere/at end" radio boxes tell which part of the
- filename Locare will compare against the search string.
-
- The find only files modified before/after/anytime should be self
- explanatory. Enter the month/day/year into the boxes. WARNING: Invalid dates
- will be interpreted in strange manners. The date Locare sees will always
- be displayed once Find (or return) is selected.
-
- The radio buttons marked "all types/appls/other/type" are used to filter files
- by file type. All includes everything. Appls include only applications.
- Other includes documents, various support and system files, etc. (non-APPL)
- Type allows you to specify which single type you want Locare to see.
- Some common file types include:
-
- TEXT - text only file.
- WORD - MacWrite file.
- PNTG - MacPaint (also FullPaint) file.
- FKEY - FKEYs
- DFIL - Font/DA Mover DA File
- SPTG - SuperPaint file.
- XLBN - Excel file.
- PICT - MacDraw PICT file.
- nX^d - WriteNow file.
-
- File types are case sensitive and must be either 4 characters long or
- empty. If you enter more than 4 chars, Locare will cut off all chars after
- the first 4. If you enter less, Locare will assume you meant an empty
- file type. Spaces are valid characters.
-
- The radio buttons marked any/creator are used to filter files by creator.
- If any is selected, such filtering is deactivated. If creator is selected,
- only files matching the creator entered in the box below it will be
- displayed. Rules for file types also apply to file creators. Some
- common creators are:
-
- MACA - MacWrite
- nX^n - WriteNow
- XCEL - Excel
- PANT - FullPaint
- CRDW - Cricket Draw
- MDRW - MacDraw
- SPNT - SuperPaint
- ALD2 - PageMaker 2.0
- MRSN - Ready,Set,Go! 3
-
- (Note: Many applications are capable of opening files created by other
- applications...ex: FullPaint can open MacPaint files. Setting the
- creator filtering to a certain creator won't show files created by
- other applications. In our ex, this means setting creator to PANT won't
- show files created by MacPaint.)
-
-
- A found file may be deleted. WARNING: The delete is done at the click of
- the mouse. No warning dialog...yet.
-
- A found file may be locked or unlocked. Locking a file prevents it from
- being modified or deleted without first unlocking it…a safety pin of sorts.
-
- A found file's GetInfo comments will also be displayed. It may take
- a while for Locare to find these comments on large volumes bec. it has
- to find and open the Desktop file. If your cache is activated (via
- Control Panel), the search will be greatly shorten the next time a file
- is found on the same volume in the same application.
- If the file and volume are both unlocked, you may also modify
- these comments or add them. They will be written to disk when you change
- a search parameter, continue searching or close Locare.
-
- (Please note: Comments are supported for HFS volumes only.)
-
- Locare also provides a "Preview" hook. For more information on this hook,
- refer to the section towards the end of this file.
-
-
- When Locare is closed, it will set the folder in the SFGetFile
- ("minifinder") box to the one in which the last file was found. If you
- launched Locare on top of such a box, the folder won't be changed by
- Locare. If you hold the shift key down when you close Locare
- (shift-cmd-period or shift-click close box), Locare won't change the
- SFGetFile folder. When closed, Locare will also saved the settings used
- in this search (string,location,modified time, etc). The next time Locare
- is opened, it'll read these settings. These settings are stored in a
- file called "Locare Defaults" in the current system folder. Apple has
- documented a potential bug with the way Locare uses BootDrive to find
- the System folder. I haven't been able to reproduce this bug, so I didn't
- bother implementing Apple's workaround (which would increase Locare's size)
- If you find that Locare startes creating the Locare Defaults in any folder
- but the System folder, tell me.
-
-
- Keyboard Shortcuts:
-
- Return key is the same as clicking on the Find! button EXCEPT when you're
- editing comments, in which case a return is a return… In such a case,
- shift-return or command-return will be the same as Find! (cont. search)
- Command-tab or Shift-tab is the same as clicking on the Drive button.
- Tab moves from one edit box to the next.
- Command-period is the same as closing Locare except when you are prompted
- for a disk, in which case, it will abort the search then.
-
-
- Known bugs:
-
- Locare's incompatibility with Switcher 5.1 has been circuvented at the
- cost of not being able to run FKEYs on top of Locare and not sending
- Desk Accessories their accRun calls.
-
-
-
-
- Planned additions:
-
- Possibly a list of files found.
- A search all mounted volumes.
- A search all online volumes.
- Better error checking.
-
-
- I do not plan to add wildcard capabilities...personally I don't see any need
- for it. If you differ with me on this, tell me...
-
- Your comments on these ideas and your suggestions are welcomed (as are
- bug reports...after all, nothing is bug free.)
-
-
-
- Preview Hook
-
- Locare provides a generic way to add external options to deal with a found
- file. The main purpose of this hook is to add an option to preview files
- found. Preview functions will be implemented in the future by myself, or
- other programmers. Locare will search the system folder for these preview
- functions. To install them, just drag them into the system folder. The
- number of preview functions supported is limited only by memory, but
- performance will suffer as more and more of them are added. If a preview
- function exists for the type of file found, the preview button will be
- enabled.
- I've devised this general method of adding a preview option to address the
- fact that different people deal with different types of files. One would
- merely obtain and install those preview functions one desires.
- For those interested in writing preview functions, refer to the Inside
- Locare section at the very end of this file.
-
- Included is a very BASIC 'TEXT' file hook. It is fully functional, but
- leaves much to be desired.
-
-
- GEnie:RAYLAU
- CIS:76174,2617
- Delphi: RAYMONDLAU
-
-
- "INSIDE LOCARE"
-
- Locare provides a hook for the Preview function. Only those interested in
- implementing their own hooks (or the curious) will need to read this
- section.
-
- When Locare is opened, Locare will search the folder the active System file
- is in (the System folder). When it encounters a file of type 'LcPw'
- (creator doesn't matter), it will open the file. The file must contain
- exactly two resources:
-
- Type:LcPw
- ID:0 (zero)
- numTypes: INTEGER { total number of types supported by this hook - 2 bytes }
- Type: OSType { X numTypes... file types supported by this hook }
- .
- .
- .
-
-
- Type:LcPw
- ID:1
- Pure code resource of:
-
- PROCEDURE myHook(hookInfo: PreviewRecPtr)
-
- TYPE PreviewRecPtr = ^PreviewRec;
- PreviewRec =
- RECORD
- version: CHAR;
- message: CHAR;
- volume: INTERGER;
- directory: LONGINT;
- index: INTEGER
- END;
-
-
- version is currently 1.
- message is set to 0 on entry.
- volume is the volume reference number on which the file is located. A
- volume reference number is always given, never a working dir.
- directory is the directory id in which the file is located.
- index is the index for use in PBGetCatInfo to the file.
-
- It is up to the procedure to determine what file type the file is, etc. and
- to clean up after itself. It need not save/restore the GrafPort.
-
- The proc will set message to 1 if it wants info on the file redisplayed.
- This will usually be the case.
- The proc will set message to 0 if it doesn't want the info displayed. It's
- hard to conceive of such a case...but an ex. is the delete function...
- though I don't see why a hook should implement it.
- Other message numbers shouldn't be used...they may serve other functions
- in the future.
-
- The proc may not destroy the record whose pointer is passed to it. This
- record will be handled by Locare. The proc is free to modify its fields
- since only the message field will be used by Locare. The proc may not
- assume anything about the future length of the record. All records with
- version of 1 will have the above format. Future records may be supersets
- of the current one and will have versions of 2,3,4, etc...
-
- The number of file type hooks supported is limited only by memory, but
- high numbers will slow down searches.
-
- If two hooks exist for the same type, the first installed hook will preside.
- (Files are searched in alphabetical order.)
-
- I hope you share your preview hooks with the rest of the Mac community.
-
- REMEMBER: You'll be running within a FKEY environment. For compatibility with
- Switcher, use GetOSEvent instead of GNE...(I've learned the hard way.)
-